import request from "@/utils/request";

// 创建学生风采
export function createStudentShow(data) {
  return request({
    url: "/member/student-show/create",
    method: "post",
    data: data,
  });
}

// 更新学生风采
export function updateStudentShow(data) {
  return request({
    url: "/member/student-show/update",
    method: "put",
    data: data,
  });
}

// 删除学生风采
export function deleteStudentShow(id) {
  return request({
    url: "/member/student-show/delete?id=" + id,
    method: "delete",
  });
}

// 获得学生风采
export function getStudentShow(id) {
  return request({
    url: "/member/student-show/get?id=" + id,
    method: "get",
  });
}

// 获得学生风采分页
export function getStudentShowPage(query) {
  return request({
    url: "/member/student-show/page",
    method: "get",
    params: query,
  });
}

// 导出学生风采 Excel
export function exportStudentShowExcel(query) {
  return request({
    url: "/member/student-show/export-excel",
    method: "get",
    params: query,
    responseType: "blob",
  });
}
